package com.chenjian.annotation.servlet;

import com.chenjian.annotation.custom.CustomContext;
import com.chenjian.annotation.service.ZhuanZzhangService;
import com.chenjian.annotation.service.impl.ZhuanZhangServiceImpl;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author TC2952
 */
public class CustomDispatcherServlet extends HttpServlet {


    /**
     * 基础扫描包（可配置化）
     */
    private static String basePack = "com.chenjian.annotation";

    /**
     * 扫描类名存储
     */
    private Set<String> className = new HashSet<>();


    /**
     * 保存映射关系
     */
    private Map<String, String> handMapping = new HashMap<>();

    @Override
    public void init(ServletConfig config) throws ServletException {
        //初始化been池
        System.out.println("servlet初始化成功");
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        super.doGet(req, resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        super.doPost(req, resp);
    }

}
